import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import toastr from 'toastr'
import 'animate.css'
import "./assets/css/index.css"
import "toastr/build/toastr.min.css"
import store from "./store";


import API from "./api";


const app = createApp(App)
// 挂载接口
app.config.globalProperties.$api = API;



// 将 toastr 挂载到 vue 全局属性中, 阻止重复提示
toastr.options.preventDuplicates = true;
app.config.globalProperties.$toastr = toastr;

app.use(router)
    .use(store)
    .mount('#app')
